package com.qzxy.premiumhotelsystem.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @TableName rooms
 */
@TableName(value ="rooms")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Rooms implements Serializable {

    @TableId
    @NotNull(message = "roomId不能为空")
    private Integer roomId;

    private String roomNumber;

    private Integer roomTypeId;

    private String status;

    private String description;

    @Version
    @JsonIgnore
    private Integer version;

    private static final long serialVersionUID = 1L;
}